package cn.dw.mm.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.dw.mm.domain.InspectionGroup;
import cn.dw.mm.service.InspectionGroupService;

@Controller
@RequestMapping(value="/inspectionGroup")
public class InspectionGroupController {
	
	@Autowired
	private InspectionGroupService inspectionGroupService;
	
	@RequestMapping(value="/list")
	@ResponseBody
	public List<InspectionGroup> groupNameByUserId(@RequestParam("userId") String userId) {
		return inspectionGroupService.groupNameByUserId(userId);
	}
	
	
}
